#!/bin/bash
while IFS= read -r line; do
    bash -c "${line}" >/dev/null 2>&1
    if [ $? -eq 0 ]; then
        echo "${line} 执行成功！"
    else
        echo "${line} 执行失败！"
    fi
    sleep 1
done </tmp/temp.log
